package com.bolong.gmgc.dao.record;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bolong.gmgc.bean.record.CarRecord;
import com.bolong.gmgc.bean.record.CarRecordQuery;

public interface CarRecordMapper {
	long countByExample(CarRecordQuery example);

	int deleteByExample(CarRecordQuery example);

	int deleteByPrimaryKey(String id);

	int insert(CarRecord record);

	int insertSelective(CarRecord record);

	List<CarRecord> selectByExampleWithBLOBs(CarRecordQuery example);

	List<CarRecord> selectByExample(CarRecordQuery example);

	CarRecord selectByPrimaryKey(String id);

	int updateByExampleSelective(@Param("record") CarRecord record, @Param("example") CarRecordQuery example);

	int updateByExampleWithBLOBs(@Param("record") CarRecord record, @Param("example") CarRecordQuery example);

	int updateByExample(@Param("record") CarRecord record, @Param("example") CarRecordQuery example);

	int updateByPrimaryKeySelective(CarRecord record);

	int updateByPrimaryKeyWithBLOBs(CarRecord record);

	int updateByPrimaryKey(CarRecord record);

	// 过期月卡记录查询
	List<CarRecord> expiredMonthcardRecord(@Param("monthcardId") String monthcardId, @Param("parkId") String parkId,@Param("orderBy") String orderBy);
}